package com.xyht.sca_s.student_manage_system.modules.workApplicationGroup.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.workApplicationGroup.entity.vo.SmsWorkGroupApplicationProcessVO;
import com.xyht.sca_s.student_manage_system.modules.workApplicationGroup.service.SmsWorkGroupApplicationProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-06-12
 */
@SecretBody
@RestController
@RequestMapping("/workApplicationGroup/process")
public class SmsWorkGroupApplicationProcessController {
    @Autowired
    SmsWorkGroupApplicationProcessService smsWorkGroupApplicationProcessService;
    @PostMapping("/update")
    public ResponseResult updateProcess(@RequestBody SmsWorkGroupApplicationProcessVO processVO){
        return smsWorkGroupApplicationProcessService.updateProcess(processVO);
    }
    @GetMapping("/list")
    public ResponseResult getProcessList(){
        return smsWorkGroupApplicationProcessService.getProcessList();
    }
}

